package com.powernode.springmvc.service;

import com.powernode.springmvc.bean.User;
import org.springframework.stereotype.Service;

/**
 * @Author: 曾铖坚
 * @Date: 2024/10/8 16:38
 * @Version: 1.0.0
 */
@Service
public class UserService {

    public User getById(Long id) {
        if (id == 1) {
            return new User(11111L, "张三", "123");
        }
        return null;
    }
}
